<!-- 生成订单 -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建订单--书瞳</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/header.css">
    <link rel="stylesheet" href="css/popBox.css">
    <link rel="stylesheet" href="css/chooseCustomerPop.css">

    <link rel="stylesheet" href="css/cartnav.css">
    <link rel="stylesheet" href="css/corder.css">
    <!-- fontawesome字体 -->
    <link rel="stylesheet" href="font/font-awesome.min.css">
</head>

<body>
    <!-- 头部 -->
    <div id="header">
        <div class="headerBox">
            <ul class="headerBox_left">
                <li class="activate_font"><a href="index.html" class="activate_font">书瞳</a></li>
                <li><a href="login.html">登录</a></li>
                <li><a href="register.html">注册</a></li>
            </ul>

            <ul class="headerBox_right">
                <li><a href="star.html"><i class="fa fa-star activate_font"></i>&nbsp;&nbsp;收藏</a></li>
                <li><a href="cart.html"><i class="fa fa-cart-plus activate_font"></i>&nbsp;&nbsp;购物车</a></li>
                <li class="my">
                    <div>我的&nbsp;&nbsp;<i class="fa fa-caret-left activate_font"></i></div>
                    <ul class="mylist">
                        <li><a href="order.html">订单</a></li>
                        <li><a href="consignee.html">收货地址</a></li>
                        <li><a href="#" class="changePwd">修改密码</a></li>
                    </ul>

                </li>
            </ul>
        </div>

        <!-- 修改密码隐藏框 -->
        <!-- 编辑弹出框 -->
        <div class="outsideLayer" style="display: none;"></div>
        <div id="pwd" class="popBox" style="display: none;">
            <div class="popTitle">
                <span>修改密码</span>
                <span><a href="#" class="dropPop">×</a></span>
            </div>
            <div class="popContent">
                <div class="popItem">
                    <span>新密码</span>
                    <div>
                        <input type="password" />
                    </div>
                </div>
                <div class="popItem">
                    <span>确认密码</span>
                    <div>
                        <input type="password">
                    </div>
                </div>

            </div>
            <div class="popBtn">
                <button class="ok" id="pwdok">确认修改</button>
                <button class="cancel dropPop">取消</button>
            </div>
        </div>
    </div>

    <!-- 中间logo部分 -->
    <div id="nav">
        <div class="navBox">
            <div class="logo">
                <img src="image/logo.png" alt="">
            </div>
            <span class="title">购物车</span>
            <ul class="bar" style="background:  url(image/procedure_bg2.png) no-repeat center center;">
                <li>我的购物车</li>
                <li class="lichoose">填写订单</li>
                <li>完成订单</li>
            </ul>
        </div>
    </div>

    <!-- 我的订单 -->
    <div id="order">
        <div class="orderBox">
            <!-- 上面部分 -->
            <div class="up">
                <ul>
                    <li class="jcstart"><a href="cart.html">
                            < </a>
                    </li>
                </ul>

                <!-- 收货人 -->
                <!-- 有收货人，但是不是默认地址 -->
                <ul class="customer mb12 displayNone">
                    <li>
                        <div>
                            <span class="k">收货人：</span>
                            <span class="v">刘强</span>
                        </div>
                        <div>
                            <span class="k">收货地址：</span>
                            <span class="v">广东省佛山市南海区华南师范大学菜鸟驿站</span>
                        </div>
                        <div>
                            <span class="k">联系电话：</span>
                            <span class="v">15992115701</span>
                        </div>
                    </li>

                    <!-- 操作 -->
                    <li>
                        <a href="#" class="mr20">设为默认</a>
                        <a href="#" class="mr20 changeCustomer">更改</a>
                    </li>
                </ul>

                <!-- 有收货人，并且是默认地址 -->
                <ul class="customer mb12">
                    <li>
                        <div>
                            <span class="k">收货人：</span>
                            <span class="v">刘强</span>
                            <span class="default">默认</span>
                        </div>
                        <div>
                            <span class="k">收货地址：</span>
                            <span class="v">广东省佛山市南海区华南师范大学菜鸟驿站</span>
                        </div>
                        <div>
                            <span class="k">联系电话：</span>
                            <span class="v">15992115701</span>
                        </div>
                    </li>

                    <!-- 操作 -->
                    <li>
                        <a href="#" class="changeCustomer">更改</a>
                    </li>
                </ul>

                <ul class="customer mb12 displayNone">
                    <li class="noCustomer">
                        <div>
                            <span class="activate_font k">&#xf196</span>
                            <span class="activate_font v">您还没有收货人信息哦!赶快添加一个吧~~</span>
                        </div>
                    </li>
                </ul>

                <div id="chooseCustomer" class="popBox" style="display: none;">
                    <div class="popTitle">
                        <span>选择收货人</span>
                        <div>
                            <span><a href="#" class="editPop">编辑 &#xf040</a></span>
                            <span><a href="#" class="dropPop">取消 &#xf00d</a></span>
                            <span><a href="#" class="okPop">确定 &#xf00c</a></span>
                        </div>
                    </div>
                    <div class="popContent">
                        <!-- 默认收货人 -->
                        <div class="chooseCustomerBox chooseCustomerBox_activate">
                            <div class="chooseCustomerBoxTitle">
                                <span>刘强</span>
                                <span>15992115701</span>
                            </div>
                            <p>广东省佛山市南海区华南师范大学菜鸟驿站</p>
                            <p>&#xf041 默认</p>
                        </div>

                        <!-- 收货人 -->
                        <div class="chooseCustomerBox">
                            <div class="chooseCustomerBoxTitle">
                                <span>刘强</span>
                                <span>15992115701</span>
                            </div>
                            <p>广东省佛山市南海区华南师范大学菜鸟驿站广东省佛山市南海区华南师范大学菜鸟驿站广东省佛山市南海区华南师范大学菜鸟驿站</p>
                        </div>

                        <!-- 收货人 -->
                        <div class="chooseCustomerBox">
                            <div class="chooseCustomerBoxTitle">
                                <span>刘强</span>
                                <span>15992115701</span>
                            </div>
                            <p>广东省佛山市南海区华南师范大学菜鸟驿站</p>
                        </div>

                    </div>
                </div>



                <!-- 商品 -->
                <ul class="shop">
                    <li class="jcstart f333"><img src="image/1.jpg" alt=""><span class="mt12">算法导论</span></li>
                    <li class="mt12">￥18.80</li>
                    <li class="mt12 activate_font">×1</li>
                    <li class="mt12 f333">￥18.80</li>
                </ul>

                <ul class="shop">
                    <li class="jcstart f333"><img src="image/2.jpg" alt=""><span class="mt12">算法</span></li>
                    <li class="mt12">￥18.80</li>
                    <li class="mt12 activate_font">×2</li>
                    <li class="mt12 f333">￥18.80</li>
                </ul>

            </div>

            <!-- 下面部分 -->
            <div class="down">
                <div class="priceBox">
                    <p>
                        <span>总计（不含运费）：</span>
                        <span class="activate_font fs20">￥24.80</span>
                    </p>

                    <p>
                        <span>运费：</span>
                        <span>￥6.00</span>
                    </p>
                </div>
                <a href="forder.html"><button>提交订单</button></a>
            </div>
        </div>
    </div>

    <!-- js代码 -->
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/header.js"></script>
    <script>
        $(function () {
            //更改收货人
            $('.changeCustomer').click(function () {
                showChooseCustomerPlane();
            });

            //编辑收货人 跳转到编辑界面
            $('.editPop').click(function () {
                alert("跳转编辑收货人界面");
            });

            //选择收货人完毕
            $('.okPop').click(function () {
                alert("确定");
            });
        });

        // 显示选择收货人面板
        function showChooseCustomerPlane() {
            $('.outsideLayer').show();
            $('#chooseCustomer').show();
        }

        //隐藏显示收货人面板
        function hideChooseCustomerPlane() {
            $('.outsideLayer').hide();
            $('#chooseCustomer').hide();
        }

    </script>

</body>

</html>